package main;

import java.util.ArrayList;
import java.util.LinkedList;
/*
 * Should contain all grids in the game
 */

import creatures.Wolf;

public class GameGrids {
	LinkedList<Grid> grids;
	ArrayList<Creature> enemies;
	public GameGrids(Player p){
		grids=new LinkedList<Grid>();

		
		//make first grid
		enemies=new ArrayList<Creature>();
		enemies.add(new Wolf(5,3,"Wolf 1"));
		enemies.get(0).x=5;
		enemies.get(0).y=3;
		
		enemies.add(new Wolf(2,8,"Wolf 2"));
		enemies.get(1).x=2;
		enemies.get(1).y=8;
		
		enemies.add(new Wolf(6,9,"Wolf 3"));
		enemies.get(2).x=6;
		enemies.get(2).y=9;
		
		//String tile="tiles/dirt.jpg";/*"grass.gif"*/
		Grid g = new Grid(16,12,1,1,2);
		
		//g.putOccupant(1, 2, p);
		g.creatures = enemies;
		g.creaturesToGrid();
		grids.add(g);
		
		//make first grid
		enemies=new ArrayList<Creature>();
		enemies.add(new Wolf(5,3,"Wolf 1"));
		enemies.get(0).x=5;
		enemies.get(0).y=3;

		enemies.add(new Wolf(2,8,"Wolf 2"));
		enemies.get(1).x=2;
		enemies.get(1).y=8;

		g = new Grid(16,12,1,5,6);

		//g.putOccupant(5, 6, p);
		g.creatures = enemies;
		g.creaturesToGrid();
		grids.add(g);
		
	}//end constructor
	
	public Grid getGrid(int i){
		return grids.get(i);
	}//
}//end class
